<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--头部-->
<nav class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0" th:fragment="thead">
    <a class="navbar-brand col-sm-3 col-md-2 mr-0" th:href="@{/loginout}">回到首页</a>
    <input class="form-control form-control-dark w-100" type="text" placeholder="Search" aria-label="Search">
<!--    <span th:text="${session.msg.name}" style="color: #fff"></span>-->
    <ul class="navbar-nav px-3">
        <li class="nav-item text-nowrap">
            <a class="nav-link" th:href="@{/loginout}">Sign out</a>
        </li>
    </ul>
</nav>
<!--侧边栏-->
<nav class="col-md-2 d-none d-md-block bg-light sidebar" th:fragment="tbody">
    <div class="sidebar-sticky" >
        <ul class="nav flex-column">
            <li class="nav-item">
                <a class="nav-link active" th:href="@{/emp/user/get}">
                    用户列表
                </a>
            </li>
            <li class="nav-item">
                <a class="nav-link" th:href="@{/emp/user/get}">
                    员工列表
                </a>
            </li>
        </ul>

        <ul class="nav flex-column mb-2" sec:authorize="hasRole('ROLE_admin')">
            <li class="nav-item">
                <a class="nav-link" th:href="@{/emp/user/add}">
                    添加员工
                </a>
            </li>
        </ul>
    </div>
</nav>
</body>
</html>
